{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import predict_ner.predict_conv as ner\n",
    "import predict_DM.predict_DM as DM\n",
    "import dialogue_pipeline.get_state as trackers\n",
    "import random\n",
    "from  actions.Run_action import  action_run"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "intent, entities, entities_dic = ner.predict(input_text)\n",
    "tracker,_ = trackers.get_DM_input([intent, entities_dic])\n",
    "action = DM.predict(tracker)\n",
    "tracker,state_dic = trackers.get_DM_input([intent, entities_dic, [action]])\n",
    "action_run(action,state_dic)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
